package xuegao.study.mall.order.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xuegao.study.mall.common.model.oms.OmsOrderSetting;
import xuegao.study.mall.order.service.OmsOrderSettingService;
import xuegao.study.mall.repo.dao.oms.OmsOrderSettingDao;

@Service
public class OmsOrderSettingServiceImpl implements OmsOrderSettingService {
    @Autowired
    private OmsOrderSettingDao omsOrderSettingDao;

    @Override
    public OmsOrderSetting getItem(Long id) {
        return omsOrderSettingDao.selectById(id);
    }

    @Override
    public int update(Long id, OmsOrderSetting omsOrderSetting) {
        omsOrderSetting.setId(id);
        return omsOrderSettingDao.updateById(omsOrderSetting);
    }
}
